package com.skhu.as.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.skhu.as.domain.RequestType;

public class RequestTypeM implements RowMapper {

	@Override
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {

		RequestType requestType = new RequestType();
		
		requestType.setRequestTypeNo(rs.getInt("request_type_no"));
		requestType.setRequestType(rs.getString("request_type"));
		
		return requestType;
	}
	
}
